home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Messaging / TempSI.h < prev   
Encoding:
C/C++ Source or Header  |  1996-04-22  |  891 b   |  54 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TempSI.h
  3.  
  4.     Contains:    Utility for exception-safe temporary reference to ODSemanticInterface
  5.  
  6.     Owned by:    Jens Alfke
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <1>     6/22/95    jpa        first checked in
  13.  
  14.     Theory Of Operation:
  15.         See the utility TempObj.h.
  16. */
  17.  
  18. #ifndef _TEMPSI_
  19. #define _TEMPSI_
  20.  
  21. #ifndef _TEMPOBJ_
  22. #include <TempObj.h>
  23. #endif
  24.  
  25. #ifndef SOM_ODSemanticInterface_xh
  26. #include "SemtIntB.xh"
  27. #endif
  28.  
  29.  
  30. #ifdef _USE_TEMPLATES_
  31.  
  32.     typedef TempRef<ODSemanticInterface>    TempODSemanticInterface;
  33.  
  34. #else
  35.  
  36.     #ifdef __MWERKS__
  37.         // Make sure 'pragma once' mode is off so the .th files can be included
  38.         // more than once!
  39.         #pragma push
  40.         #pragma once off
  41.     #endif
  42.  
  43.     #define _T_        ODSemanticInterface
  44.     #define _C_        TempODSemanticInterface
  45.     #include <TempRef.th>
  46.  
  47.     #ifdef __MWERKS__
  48.         #pragma pop
  49.     #endif
  50.  
  51. #endif
  52.  
  53. #endif /*_TEMPSI_*/
  54.